home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / util / conv / convtemp.lha / convtemp.doc < prev   
Text File  |  1998-04-19  |  3KB  |  97 lines

  1.  
  2.                               Convtemp v1.0
  3.  
  4.  
  5. Convtemp is a small program which converts temperatures between the Celsius
  6. and Fahrenheit scales. All calculations are floating point, and the results
  7. are displayed as floating point numbers.
  8.  
  9.  
  10.  
  11. Command-line arguments:
  12.  
  13.    Convtemp takes two arguments; the value to be converted, and the number
  14.    of decimal places to display the result.
  15.  
  16.    By default, convtemp takes a value in Celsius and converts it to
  17.    Fahrenheit. To convert from Fahrenheit to Celsius, enter the value with
  18.    an F (or f) - e.g. to convert 59 degrees Fahrenheit, use 59F.
  19.  
  20.    Floating point numbers may also be given, convtemp will accept either a
  21.    period '.' or comma ',' as the decimal separator.
  22.  
  23.    The default number of decimal places displayed is 4, but another amount
  24.    can be given as a second argument. Convtemp will accept a value from 0
  25.    to 12, inclusive. Any trailing zeros will be dropped, so the number of
  26.    places displayed may be less than that given.
  27.  
  28.       NOTE that no rounding up is done when trimming the decimal places,
  29.       e.g. 23.514194 will be truncated to 23.5141 by default.
  30.  
  31.  
  32.  
  33. Examples:
  34.  
  35.    > convtemp 17
  36.    62.6
  37.  
  38.    > convtemp 55F
  39.    12.7777
  40.  
  41.    > convtemp 35.54524547 6
  42.    95.981441
  43.  
  44.    > convtemp -4,6F
  45.    -20,3333
  46.  
  47.    > convtemp 50.18f 10
  48.    10.1
  49.  
  50.  
  51.  
  52. Limits:
  53.  
  54.    Any number between +/- 999999999.999999999 may be entered (note that
  55.    values below -273.15C (-459.67F) aren't physically possible according to
  56.    current theories).
  57.  
  58.    The number of decimal places entered should be limited to 9 - any more
  59.    will give incorrect results.
  60.  
  61.    For numbers within about +/- 200, convtemp is absolutely accurate,
  62.    within the above limit, to 12 decimal places. As the number increases
  63.    (or decreases, respectively), the accuracy will degrade, due to rounding
  64.    errors.
  65.  
  66.  
  67.  
  68. Bugs:
  69.  
  70.    None that I know of.
  71.  
  72.    If you find any, please mail me at convtemp@b-field.demon.co.uk giving
  73.    as much detail as possible, including what machine, processor, OS
  74.    version etc you have.
  75.  
  76.    Feel free to send any other suggestions/comments to that address as
  77.    well.
  78.  
  79.  
  80.  
  81. Copyright:
  82.  
  83.    Copyright (C) 1998 David Bloomfield <dave@b-field.demon.co.uk>
  84.  
  85.    This program is FREEWARE. It can be freely distributed anywhere, but
  86.    please keep this text with the program.
  87.  
  88.  
  89.  
  90. Disclaimer:
  91.  
  92.    This software comes without ANY warranty, expressed or implied. The
  93.    author has taken every reasonable step to ensure the software is 100%
  94.    reliable, but will not be held responsible for any damage caused as a
  95.    result of using this software. You use this program at your own risk!
  96.  
  97.